package cn.houseProperty.service.impl;

import cn.entity.Do.Building;
import cn.houseProperty.dao.BuildingDao;
import cn.houseProperty.service.IbuildingService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class BuildingService implements IbuildingService {
    @Autowired
    private BuildingDao buildingDao;
    @Override
    public List<Building> selectByPid(String pid) {
        return buildingDao.selectByPid(pid);
    }

    @Override
    public List<Building> selectAll() {
        return buildingDao.selectAll();
    }
}
